package com.haoshuang.zhouzhoubang.ui.dialog

import android.content.Context

import android.widget.ImageView
import android.widget.TextView
import com.haoshuang.zhouzhoubang.R


import com.lxj.xpopup.core.BottomPopupView



class Ts10Dialog(context: Context, private val onSubmit: () -> Unit) : BottomPopupView(context){
    override fun getImplLayoutId(): Int = R.layout.dialog_tx10

    override fun initPopupContent() {
        super.initPopupContent()
        var rl_root=findViewById<ImageView>(R.id.tvGb2)
        var tvGb2=findViewById<TextView>(R.id.tvGb)

        var tvCommit=findViewById<TextView>(R.id.tvCommit)
        rl_root.setOnClickListener {
            dismiss()
        }
        tvGb2.setOnClickListener {
            dismiss()
            onSubmit()
        }
        tvCommit.setOnClickListener {
            dismiss()

        }
    }


}